package cn.tedu.egmybatis2.mapper;

import cn.tedu.egmybatis2.pojo.entity.Product;
import cn.tedu.egmybatis2.vo.ProductVo1;
import cn.tedu.egmybatis2.vo.ProductVo2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    int insertProduct(Product product);

    ProductVo1 selectOneProduct(Integer pid);

    List<ProductVo2> selectAllProduct();

    int deleteById(Integer pid);

    int updateById(Product product);



    int deleteByIds(List<Long> list);

    int dynamicUpdate(Product product);

    int selectCount();



}
